void main() {
//  throw FormatException('Expected at least 1 section');
//  throw 'Out of llamas!';
//  distanceTo(null);
  try {
    fun1();
  } on FormatException catch(e) {
    print(e.message);
    fun2();
  } catch (e) {
    fun3();
  }
}

void distanceTo(Object other) => throw UnimplementedError();

void fun1() {
  var mmd = "string";
  int i = int.parse(mmd);
}

void fun2() {
  print("类型转换错误");
}

void fun3() {
  print("error2");
}